package com.mtsmda.jpa.domain.joinedTable;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Table(name = "COMPUTER")
@Inheritance(strategy = InheritanceType.JOINED)
public class Computer implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Integer idPC;

	private Integer volumeHdd;

	private Integer volumeRam;

	public Computer() {
		super();
	}

	public Computer(Integer volumeHdd, Integer volumeRam) {
		this();
		setVolumeHdd(volumeHdd);
		setVolumeRam(volumeRam);
	}

	public Integer getIdPC() {
		return idPC;
	}

	public void setIdPC(Integer idPC) {
		this.idPC = idPC;
	}

	public Integer getVolumeHdd() {
		return volumeHdd;
	}

	public void setVolumeHdd(Integer volumeHdd) {
		this.volumeHdd = volumeHdd;
	}

	public Integer getVolumeRam() {
		return volumeRam;
	}

	public void setVolumeRam(Integer volumeRam) {
		this.volumeRam = volumeRam;
	}

}